rm -rf build
mkdir build

cp -r extension-pageaction build
cp -r extension-slides build

version=`cat VERSION`
replace=s/1\.0\.0/$version/g
sed -i $replace build/extension-pageaction/manifest.json
sed -i $replace build/extension-slides/manifest.json

cd build
zip -r extension-pageaction.zip extension-pageaction/
zip -r extension-slides.zip extension-slides/
zip -d extension-pageaction.zip extension-pageaction/.\*
zip -d extension-slides.zip extension-slides/.\*
cd ..


#rm -rf build/extension-pageaction
#rm -rf build/extension-slides

